package psn.bean.person;

import java.sql.*;
import com.ai.appframe2.bo.DataContainer;
import com.ai.appframe2.common.DataContainerInterface;
import com.ai.appframe2.common.AIException;
import com.ai.appframe2.common.ServiceManager;
import com.ai.appframe2.common.ObjectType;
import com.ai.appframe2.common.DataType;

import psn.bean.person.*;

public class MappTestDataBean extends DataContainer implements DataContainerInterface,IMappTestDataValue{

  private static String  m_boName = "psn.bean.person.MappTestData";



  public final static  String S_DateId = "DATE_ID";
  public final static  String S_Net = "NET";
  public final static  String S_Col4 = "COL4";
  public final static  String S_Col3 = "COL3";
  public final static  String S_Col2 = "COL2";
  public final static  String S_Col1 = "COL1";
  public final static  String S_NetStatus = "NET_STATUS";
  public final static  String S_AreaCode = "AREA_CODE";

  public static ObjectType S_TYPE = null;
  static{
    try {
      S_TYPE = ServiceManager.getObjectTypeFactory().getInstance(m_boName);
    }catch(Exception e){
      throw new RuntimeException(e);
    }
  }
  public MappTestDataBean() throws AIException{
      super(S_TYPE);
  }

 public static ObjectType getObjectTypeStatic() throws AIException{
   return S_TYPE;
 }

 public void setObjectType(ObjectType  value) throws AIException{
   throw new AIException("此种数据容器不能重置业务对象类型");
 }


  public void initDateId(String value){
     this.initProperty(S_DateId,value);
  }
  public  void setDateId(String value){
     this.set(S_DateId,value);
  }
  public  void setDateIdNull(){
     this.set(S_DateId,null);
  }

  public String getDateId(){
       return DataType.getAsString(this.get(S_DateId));
  
  }
  public String getDateIdInitialValue(){
        return DataType.getAsString(this.getOldObj(S_DateId));
      }

  public void initNet(String value){
     this.initProperty(S_Net,value);
  }
  public  void setNet(String value){
     this.set(S_Net,value);
  }
  public  void setNetNull(){
     this.set(S_Net,null);
  }

  public String getNet(){
       return DataType.getAsString(this.get(S_Net));
  
  }
  public String getNetInitialValue(){
        return DataType.getAsString(this.getOldObj(S_Net));
      }

  public void initCol4(long value){
     this.initProperty(S_Col4,new Long(value));
  }
  public  void setCol4(long value){
     this.set(S_Col4,new Long(value));
  }
  public  void setCol4Null(){
     this.set(S_Col4,null);
  }

  public long getCol4(){
        return DataType.getAsLong(this.get(S_Col4));
  
  }
  public long getCol4InitialValue(){
        return DataType.getAsLong(this.getOldObj(S_Col4));
      }

  public void initCol3(long value){
     this.initProperty(S_Col3,new Long(value));
  }
  public  void setCol3(long value){
     this.set(S_Col3,new Long(value));
  }
  public  void setCol3Null(){
     this.set(S_Col3,null);
  }

  public long getCol3(){
        return DataType.getAsLong(this.get(S_Col3));
  
  }
  public long getCol3InitialValue(){
        return DataType.getAsLong(this.getOldObj(S_Col3));
      }

  public void initCol2(long value){
     this.initProperty(S_Col2,new Long(value));
  }
  public  void setCol2(long value){
     this.set(S_Col2,new Long(value));
  }
  public  void setCol2Null(){
     this.set(S_Col2,null);
  }

  public long getCol2(){
        return DataType.getAsLong(this.get(S_Col2));
  
  }
  public long getCol2InitialValue(){
        return DataType.getAsLong(this.getOldObj(S_Col2));
      }

  public void initCol1(long value){
     this.initProperty(S_Col1,new Long(value));
  }
  public  void setCol1(long value){
     this.set(S_Col1,new Long(value));
  }
  public  void setCol1Null(){
     this.set(S_Col1,null);
  }

  public long getCol1(){
        return DataType.getAsLong(this.get(S_Col1));
  
  }
  public long getCol1InitialValue(){
        return DataType.getAsLong(this.getOldObj(S_Col1));
      }

  public void initNetStatus(String value){
     this.initProperty(S_NetStatus,value);
  }
  public  void setNetStatus(String value){
     this.set(S_NetStatus,value);
  }
  public  void setNetStatusNull(){
     this.set(S_NetStatus,null);
  }

  public String getNetStatus(){
       return DataType.getAsString(this.get(S_NetStatus));
  
  }
  public String getNetStatusInitialValue(){
        return DataType.getAsString(this.getOldObj(S_NetStatus));
      }

  public void initAreaCode(String value){
     this.initProperty(S_AreaCode,value);
  }
  public  void setAreaCode(String value){
     this.set(S_AreaCode,value);
  }
  public  void setAreaCodeNull(){
     this.set(S_AreaCode,null);
  }

  public String getAreaCode(){
       return DataType.getAsString(this.get(S_AreaCode));
  
  }
  public String getAreaCodeInitialValue(){
        return DataType.getAsString(this.getOldObj(S_AreaCode));
      }


 
 }

